package com.wanjia.estate.pojo.print;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class CommonResponse implements Serializable {

    private Integer code;

    private String message;

    public boolean isSuccessful() {
        return Objects.equals(code, 200) && Objects.equals(message, "Done");
    }
}
